package com.xbongbong.paas.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

@Getter
@Setter
@ToString
public class OutLinkFieldAttrEntity implements Serializable {

    private static final long serialVersionUID = 809543324330867244L;


    /**
     * 字段
     */
    private String attr;
    /**
     * 业务类型
     */
    private Integer fieldType;
    /**
     * 原字段名字
     */
    private String attrName;
    /**
     * 外链显示的名字
     */
    private String defaultName;

    /**
     * 是否允许编辑 1：允许 0：不允许
     */
    private Integer editable;
    /**
     * 是否允许可见 1:允许 0：不允许
     */
    private Integer visible;
    /**
     * 是否允许筛选 1:允许 0：不允许
     */
    private Integer filterable;
    /**
     * 是否改过名字 1 有 0 没有改过 默认没有
     */
    private Integer renamed;
    /**
     * 子表单相关信息
     */
    private OutLinkSubFormPojo subForm;



    // ======================Saas特殊属性========================
    public OutLinkFieldAttrEntity(Integer fieldType,String attrName,String attr, String defaultName,Integer editable,Integer visible,Integer filterable,Integer renamed){
        this.fieldType = fieldType;
        this.attrName = attrName;
        this.attr = attr;
        this.defaultName = defaultName;
        this.editable = editable;
        this.visible = visible;
        this.filterable = filterable;
        this.renamed = renamed;
    }
    public OutLinkFieldAttrEntity(){

    }
}
